package com.ftg.learn.chapter02.java.myframework;

import com.ftg.learn.chapter02.java.myframework.util.AnimalsFactory;
import com.ftg.learn.chapter02.java.pool.Animals;

/**
 * 刘长Q -
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/12/25 下午3:52
 */
public class Lcq {

    public static void main(String[] args) {
        AnimalsFactory animalsFactory = new AnimalsFactory("/home/kangjx/userpanel/workspace/java/learnjava2309/learnjava2309/src/main/resources/dayifactory.xml");

        Animals dog = animalsFactory.getAnimals("dog");
        System.out.println(dog.getName());

    }

}
